package com.jinhua.usercenter.common;

public enum ErrorCode {
    SUCCESS(200,"OK"),
    FAIL(400,"操作失败"),
    NOT_LOGIN(401,"未登录"),
    PARAM_ERROR(402,"参数错误"),
    NO_AUTH(403,"无权限"),
    NOT_FOUND(405,"未找到"),
    SYSTEM_ERROR(500,"系统错误"),
    ;


//    返回值代码
    private Integer code;
//    返回信息
    private String message;



    public Integer getResultCode() {
        return code;
    }

    public String getResultMsg() {
        return message;
    }

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
